package com.ganbo.stock.entity;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 当天逐笔大单交易
 *
 * @Author: ganbo
 * @Date: 2020/12/28 17:57
 */

@Data
@Entity
@Table(name = "s_bigdeal")
@ToString(callSuper = true)
public class BigDeal extends BaseEntity {

    private String stockDm;
    private Long stockId;
    private String stockName;

    @Temporal(TemporalType.DATE)
    private Date recordDate;    //记录时间(年月日)

    //====接口返回数据====

    private String t;           //时间（HH:mm:dd）
    private BigDecimal v;       //成交量（股）
    private BigDecimal p;       //成交价
    private Integer ts;         //交易方向（0：中性盘，1：买入，2：卖出）
}
